package com.clinic.customer.controller;

import com.clinic.api.patient.PatientControllerApi;
import com.clinic.framework.common.request.PatientQueryRequest;
import com.clinic.framework.common.response.QueryList;
import com.clinic.framework.common.response.ResponseResult;
import com.clinic.framework.common.response.ResponseValue;
import com.clinic.framework.domain.base.Patient;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/patient")
public class PatientController implements PatientControllerApi {
    @PostMapping("/add")
    public ResponseResult addPatient(@RequestBody Patient Patient) {
        return null;
    }

    @PostMapping("/edit")
    public ResponseResult editPatient(@RequestBody Patient Patient) {
        return null;
    }

    @DeleteMapping("/del/{id}")
    public ResponseResult delPatient(@PathVariable("id") String id) {
        return null;
    }

    @GetMapping("/list/{page}/{size}")
    public QueryList<Patient> findPatientList(@PathVariable("page") String page, @PathVariable("size") String size, PatientQueryRequest dqr) {
        return null;
    }

    @GetMapping("/get/{id}")
    public ResponseValue<Patient> findPatientById(@PathVariable("id") String id) {
        return null;
    }
}
